﻿using System.ComponentModel.DataAnnotations;
using System.Xml.Serialization;
using Microsoft.Services.NuGet.Resources;

namespace Microsoft.Services.NuGet {
    [XmlType("dependency", Namespace = Constants.ManifestSchemaNamespace)]
    public class ManifestDependency {
        [Required(ErrorMessageResourceType = typeof(NuGetResources), ErrorMessageResourceName = "Manifest_DependencyIdRequired")]
        [XmlAttribute("id")]
        public string Id { get; set; }

        [XmlAttribute("version")]
        public string Version { get; set; }
    }
}